package jmine.tec.services.api.export;

import bancosys.tec.exception.AbstractRuntimeException;
import bancosys.tec.exception.LocalizedMessageHolder;

/**
 * Exception lançada caso ocorra algum erro durante a exportação.
 * 
 * @author lundberg
 */
public class ExportException extends AbstractRuntimeException {

    /**
     * Construtor
     * 
     * @param messageHolder messageHolder
     * @param cause cause
     */
    public ExportException(LocalizedMessageHolder messageHolder, Throwable cause) {
        super(messageHolder, cause);
    }

    /**
     * Construtor
     * 
     * @param messageHolder messageHolder
     */
    public ExportException(LocalizedMessageHolder messageHolder) {
        super(messageHolder);
    }

    /**
     * Constructor
     * 
     * @param key key
     * @param arguments arguments
     * @deprecated use LocalizedMessageHolder
     */
    @Deprecated
    public ExportException(String key, Object... arguments) {
        super(key, arguments);
    }

    /**
     * Constructor
     * 
     * @param key key
     * @param cause cause
     * @param arguments arguments
     * @deprecated use LocalizedMessageHolder
     */
    @Deprecated
    public ExportException(String key, Throwable cause, Object... arguments) {
        super(key, cause, arguments);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getBundleBaseName() {
        return "jmine-tec-services-api-messages";
    }
}
